﻿/*
 *	Copyright (c) 2009 Queensland University of Technology. All rights reserved.
 *	The QUT Bioinformatics Collection is open source software released under the 
 *	Microsoft Public License (Ms-PL): http://www.microsoft.com/opensource/licenses.mspx.
 */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

#if ! SILVERLIGHT
using System.Windows.Navigation;
#endif

namespace QUT.Bio.Util {
	/// <summary>
	/// Renders out a simple 
	/// </summary>
	public partial class XrefHyperlink: UserControl {
		public XrefHyperlink () {
			InitializeComponent();
		}

		public string Database {
			get {
				return dbText.Text;
			}
			set {
				dbText.Text = value;
			}
		}

		public string Id {
			get {
				return (string) linkButton.ButtonContent;
			}
			set {
				linkButton.ButtonContent = value;
			}
		}

		public Uri Address {
			get {
				return linkButton.Address;
			}
			set {
				linkButton.Address = value;
			}
		}
	}
}
